//
//  SYRequestAPI+SYZiYuan.h
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/5/13.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import "SYRequestAPI.h"

@interface SYRequestAPI (SYZiYuan)

#pragma mark - 我得收藏

/**
 我收藏得文件

 @param index 页码
 @param size 条
 @param sortPid 资源父类型ID
 @param tinyClass 是否微课 是否微课
 @param onlySort 只差文件夹 0否 1 是
 @param success 1
 @param fail 0
 */
+ (void)zy_resourceCollectionCollectionListPageIndex:(NSInteger)index
                                            pageSize:(NSInteger)size
                                             sortPid:(NSString *)sortPid
                                         isTinyClass:(NSString *)tinyClass
                                            onlySort:(NSString *)onlySort
                                             success:(void(^)(NSMutableArray *listArr))success
                                                fail:(FailBlock)fail;


/**
 添加收藏

 @param zyId 收藏id
 @param infoId 收藏对象id
 @param infoType 收藏对象类型
 @param success 1
 @param fail 0
 */
+ (void)zy_resourceCollectionAddCollectionId:(NSString *)zyId
                                      infoId:(NSString *)infoId
                                    infoType:(NSString *)infoType
                                     success:(void(^)(BOOL isSuccess))success
                                        fail:(FailBlock)fail;


/**
 删除收藏

 @param zyId 收藏id
 @param onlySort 是否是文件夹 1是0不是
 @param success 1
 @param fail 0
 */
+ (void)zy_resourceCollectionRemoveCollectionid:(NSString *)zyId
                                       onlySort:(NSString *)onlySort
                                        success:(void(^)(BOOL isSuccess))success
                                           fail:(FailBlock)fail;

#pragma mark - 我的文件


/**
 移动文件

 @param wjId 文件id
 @param typePid 文件分类id
 @param onlySort 是否是文件夹 1是0不是
 @param success 1
 @param fail 0
 */
+ (void)zy_requestMyResourceServiceMoveFileId:(NSString *)wjId
                                      typePid:(NSString *)typePid
                                     onlySort:(NSString *)onlySort
                                      success:(void(^)(BOOL isSuccess))success
                                         fail:(FailBlock)fail;



/**
 6.9.3.5    重命名文件

 @param fileName 新文件名字
 @param wjId 文件ID
 @param onlySort 是否是文件夹 1是0不是
 @param success 1
 @param fail 0
 */
+ (void)zy_requestMyRenameFileFileName:(NSString *)fileName
                                  wjId:(NSString *)wjId
                              onlySort:(NSString *)onlySort
                               success:(void(^)(BOOL isSuccess))success
                                  fail:(FailBlock)fail;


/**
 6.9.3.2    我的文件

 @param pageIndex 页码
 @param pageSize 条数
 @param sortId 资源类型id
 @param isTinyClass 是否微课 0:文件,1:微课
 @param onlySort 是否请求文件
 @param success 1
 @param fail 0
 */
+ (void)zy_requestMyResourceListPageIndex:(NSInteger)pageIndex
                                 pageSize:(NSInteger)pageSize
                                   sortId:(NSString *)sortId
                              isTinyClass:(NSString *)isTinyClass
                                 onlySort:(NSString *)onlySort
                                  keyWord:(NSString *)keyWord
                                  success:(void(^)(NSMutableArray *listArr))success
                                     fail:(FailBlock)fail;

/**
 获取s辅导视频信息

 @param tutorId 辅导id
 @param success 1
 @param fail 0
 */
+ (void)zy_requestTutorClassServiceTutorId:(NSString *)tutorId
                                   success:(void(^)(NSMutableArray *listArr))success
                                      fail:(FailBlock)fail;



/**
 6.9.3.3    添加目录

 @param directioryName 目录名字
 @param typePid 目录父类型id  顶级"0"
 @param category 目录类别
 @param success 1
 @param fail 0
 */
+ (void)zy_requestMyResourceAddDirectoryName:(NSString *)directioryName
                                     typePid:(NSString *)typePid
                                    category:(NSString *)category
                                     success:(void(^)(BOOL isSuccess))success
                                        fail:(FailBlock)fail;

/**
 删除文件

 @param dlid 稳健id
 @param onlySort 是否是文件夹 1是0不是
 @param success 1
 @param fail 0
 */
+ (void)zy_requestMyDeleteFileId:(NSString *)dlid
                        onlySort:(NSString *)onlySort
                         success:(void(^)(BOOL isSuccess))success
                            fail:(FailBlock)fail;



/**
 保存微课地址

 @param sortid 分类id
 @param path 路径
 @param isTiny 是否是微课 1是
 @param success 1
 @param fail 0
 */
+ (void)zy_requestSaveResource:(NSString *)sortid
                          path:(NSString *)path
                   isTinyClass:(NSString *)isTiny
                       success:(void(^)(BOOL isSuccess))success
                          fail:(FailBlock)fail;



/// 上传微课
/// @param filedId 资源id
/// @param success 1
/// @param fail 0
+ (void)zy_requestEmployeeResourceFiledId:(NSString *)filedId
                                  success:(void(^)(BOOL isSuccess))success
                                     fail:(FailBlock)fail;



/**
 老师组信息

 @param groupName 组名城
 @param pageIndex 1
 @param pageSize 2
 @param success 1
 @param fail 0
 */
+ (void)zy_requestGetGroupInfoName:(NSString *)groupName
                         pageIndex:(NSInteger)pageIndex
                          pageSize:(NSInteger)pageSize
                           success:(void(^)(NSArray *arr))success
                              fail:(FailBlock)fail;


/**
 获取组发送的教材包

 @param groupId 群组id
 @param packageName 素材包名称 不用穿
 @param success 1
 @param fail 0
 */
+ (void)zy_requestGetGroupPckgeListGroupid:(NSString *)groupId
                               packageName:(NSString *)packageName
                                   success:(void(^)(NSArray *arr))success
                                      fail:(FailBlock)fail;

/**
 获取教材包教材

 @param packageId 教材包id
 @param success 1
 @param fail 0
 */
+ (void)zy_requestGetResourceEmployeeListPackageId:(NSString *)packageId
                                           success:(void(^)(NSArray *arr))success
                                              fail:(FailBlock)fail;

/**
 获取分享的班级

 @param groupId 群组id
 @param packageId 素材包id
 @param success 1
 @param fail 0
 */
+ (void)zy_requestGetGroupPackageClassListGroupId:(NSString *)groupId
                                        packageId:(NSString *)packageId
                                          success:(void(^)(NSArray *arr))success
                                             fail:(FailBlock)fail;

/**
 组成员信息

 @param groupId 群组id
 @param success 1
 @param fail 0
 */
+ (void)zy_requestGetGroupMemberListGroupId:(NSString *)groupId
                                    success:(void(^)(NSArray *arr))success
                                       fail:(FailBlock)fail;


/**
 发送教材到班级

 @param groupId 集团id
 @param campusId 分校ID
 @param resourceGroupId 组id
 @param resourcePackageId 教材宝id
 @param classId 班级ID
 @param grandDate 发送日期
 @param recycleDate 回收日期
 @param success 1
 @param fail 0
 */
+ (void)zy_requestAddGroupPackageClassGroupid:(NSString *)groupId
                                     campusid:(NSString *)campusId
                              resourceGroupId:(NSString *)resourceGroupId
                            resourcePackageId:(NSString *)resourcePackageId
                                      classId:(NSString *)classId
                                    grandDate:(NSString *)grandDate
                                  recycleDate:(NSString *)recycleDate
                                      success:(void(^)(BOOL isSuccess))success
                                         fail:(FailBlock)fail;


@end




















